import React, { Component } from 'react';
import { Input, Button, List } from 'antd';

class Test extends Component {

	constructor(props) {
    super(props);
    this.state = {
    	list: ['a', 'b']
    }
  }

	render() {
		return (
			<div style={{width: '200px'}}>
				<Input placeholder='auto'/>
				<Button type='primary'>提交</Button>
				<List
					style={{marginTop: '10px', width: '350px'}}
	        bordered
	        dataSource={this.state.list}
	        renderItem={item =>(<List.Item>{item}</List.Item>)}
				/>
		</div>
		)
	}
}

export default Test;